{% block head %}
	<link href="{{ path }}css/bootstrap.css" rel="stylesheet">
	<link href="{{ path }}css/bootstrap-overrides.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ path }}css/estilo_imprimir.css" type="text/css" media="print" />
    
{% endblock %}

{% load humanize %}

<div class="widget widget-table">
	<div align="center">
        <p><h2>INFORME AL SISMED</h2></p>
        <p><h4>{{ inicio }} - {{ fin }}</h4></p>
	</div>
	<table class="table table-striped table-bordered table-highlight" id="tblHistorial"  width="100%">
        <thead>
            <tr>
                    <th width="5%">Cons</th>
                    <th width="25%" align="center">Medicamento</th>
                    <th width="15%" align="center">Laboratorio</th>
                    <th width="10%" align="center">Cod. Cum</th>
                    <th width="8%" align="center">Cost. Min</th>
                    <th width="8%" align="center">Cost. Max</th>
                    <th width="8%" align="center">Vlr. Comp</th>
                    <th width="5%" align="center">Cant.</th>
                    <th width="8%" align="center">Fact. Min</th>
                    <th width="8%" align="center">Fact. Max</th>
            </tr>
        </thead>
        <tbody>
                {% for lCiclo, item in Items.items %}
                    <tr class="{% cycle '' 'odd' %}">
                        <td align="right"><label>{{ forloop.counter }}</label></td>
                        <td align="right"><label>{{ item.Producto.nombre }}</label></td>
                        <td align="left"><label>{{ item.Producto.laboratorio.nombre }}</label></td>
                        <td align="left"><label>{{ item.Producto.cum|default_if_none:"" }}</label></td>
                        <td align="center"><label>{{ item.valor_minimo|default_if_none:"" }}</label></td>
                        <td align="center"><label>{{ item.valor_maximo|default_if_none:"" }}</label></td>
                        <td align="center"><label>{{ item.valor_compra|default_if_none:"" }}</label></td>
                        <td align="left"><label>{{ item.cantidad }}</label></td>
                        <td align="left"><label>{{ item.f_min|default_if_none:"" }}</label></td>
                        <td class="table_center" ><label>{{ item.f_max|default_if_none:"" }}</label></td>
                    </tr>
                {% endfor %}
        </tbody>
    </table>
</div> <!-- /. widget-table -->